home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung CD 2 (Tewi)(1994).iso / doc / opcodes / opcode.txt
Text File  |  1992-12-08  |  28KB  |  450 lines

  1. The following opcode tables aid in interpreting 80386 object code. Use the
  2. high order 4 bits of the opcode as an index to a row of the opcode table;
  3. use the low order 4 bits as an index to a column of the table. If the
  4. opcode is 0FH, refer to the 2-byte opcode table, and use the second byte
  5. of the opcode to index the rows and columns of that table.
  6.  
  7. KEY TO ABBREVIATIONS
  8.  
  9. Operands are identified by a two-character code of the form Zz. The first
  10. character, an uppercase letter, specifies the addressing method, the
  11. second character, a lowercase letter, specifies the type of operand.
  12.  
  13. CODES FOR ADDRESSING METHOD
  14.  
  15. A:      Direct address. The instruction has no mod r/m byte, the address
  16. of the operand is encoded in the instruction' no base register, index
  17. register, or scaling factor can be applied -- for example, far JMP (EA).
  18.  
  19. C:      The reg field of the mod r/m byte selects a control register, for
  20. example, MOV (0FH 20H, 0FH 22H).
  21.  
  22. D:      The reg field of the mod r/m byte selects a debug register, for
  23. example, MOV (0FH 21h, 0fh 23h).
  24.  
  25. E:      A mod r/m byte follows the opcode and specifies the operand. The
  26. operand is either a general register or a memory address. If it is a memory
  27. address, the address is computed from a segment register and any of the
  28. following values: a base register, an index register, a scaling factor or
  29. a displacement.
  30.  
  31. F:      Flags register.
  32.  
  33. G:      The reg field of the mod r/m byte selects a general register --
  34. for example, ADD (00H).
  35.  
  36. I:      Immediate data. The value of the operand is encoded in subsequent
  37. bytes of the instruction.
  38.  
  39. J:      The instruction contains a relative offset to be added to the
  40. instruction pointer register -- for example, JMP short, LOOP.
  41.  
  42. M:      The mode r/m bytes may refer only to memory -- for example, BOUND,
  43. LES, LDS, LSS, LFS, LGS.
  44.  
  45. O:      The instruction has no mod r/m byte; the offset of the operand is
  46. coded as a word or doubleword(depending on address size attribute) in the
  47. instruction. No base register, index register, or scaling factor can be
  48. applied -- for example, MOV (A0H-A3H)
  49.  
  50. R:      The mod field of the mod r/m byte may refer only to a general
  51. register -- for example, MOV(0FH 20H, 0FH 26H
  52.  
  53. S:      The reg field of the mod r/m byte selects a segment register --
  54. for example, MOV (8CH,8EH).
  55.  
  56. T:      The reg field of the mod r/m byte selects a test register -- for
  57. example, MOV (0FH 24H).
  58.  
  59. X:      Memory addressed by DS:SI -- for example, MOVS, COMPS, OUTS, LODS,
  60. SCAS.
  61.  
  62. Y:      Memory addressed by ES:DI -- for example, MOVS CMPS, INS, STOS.
  63.  
  64. CODES FOR OPERAND TYPE
  65.  
  66. a:      Two single-word operands in memory or two double-word operands in
  67. memory, depending on operand size attribute (used only by BOUND).
  68.  
  69. b:      Byte (regardless of operand size attribute).
  70.  
  71. c:      Byte or word, depending on operand size attribute.
  72.  
  73. d:      Doubleword (regardless of operand size attribute).
  74.  
  75. p:      32 bit or 48 bit pointer, depending on operand size attribute.
  76.  
  77. s:      6 byte pseudodescriptor.
  78.  
  79. v:      Word or doubleword, depending on operand size attribute.
  80.  
  81. w:      Word (regardless of operand size attribute).
  82.  
  83. REGISTER CODES
  84.  
  85. When an operand is a register encoded in the opcode, the register is
  86. identified by its name, for example, AX, CL, or ESI. The name of the
  87. register indicates whether the register is 32 bits, 16 bits, or 8 bits. A
  88. register identifier of the form eXX is used when the width of the register
  89. depends on the operand size attribute; for example, eAX indicates that the
  90. AX register is used when the operand size attribute is 16 and that the EAX
  91. register is used when the operand size attribute is 32.
  92.  
  93.  
  94.  
  95. ONE BYTE OPCODE TABLE
  96.  
  97.   ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
  98.   │0       │1       │2       │3       │4       │5       │6       │7       │
  99. ┌─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  100. │0│ADD     │ADD     │ADD     │ADD     │ADD     │ADD     │PUSH    │POP     │
  101. │ │Eb,Gb   │Ev,Gv   │Gb,Eb   │Gv,Ev   │AL,Ib   │eAX,lv  │ES      │ES      │
  102. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  103. │1│ADC     │ADC     │ADC     │ADC     │ADC     │ADC     │PUSH    │POP     │
  104. │ │Eb,Gb   │Ev,Gv   │Gb,Eb   │Gv,Ev   │AL,Lb   │eAX,Iv  │SS:     │SS      │
  105. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  106. │2│AND     │AND     │AND     │AND     │AND     │AND     │ES:     │DAA     │
  107. │ │Eb,Gb   │Ev,Gv   │Gb,Eb   │Gv,Ev   │AL,Ib   │eAX,Iv  │        │        │
  108. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  109. │3│XOR     │XOR     │XOR     │XOR     │XOR     │XOR     │SS:     │AAA     │
  110. │ │Eb,Gb   │Ev,Gv   │Gb,Eb   │Gv,Ev   │AL,Ib   │eAX,Iv  │        │        │
  111. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  112. │4│INC     │INC     │INC     │INC     │INC     │INC     │INC     │INC     │
  113. │ │eAX     │eCX     │eDX     │eBX     │eSP     │eBp     │eSI     │eDI     │
  114. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  115. │5│PUSH    │PUSH    │PUSH    │PUSH    │PUSH    │PUSH    │PUSH    │PUSH    │
  116. │ │eAX     │eCX     │eDX     │eBX     │eSP     │eBP     │eSI     │eDI     │
  117. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  118. │6│PUSHAD  │POPAD   │BOUND   │ARPL    │FS:     │GS:     │OPSIZE: │ADRSIZE:│
  119. │ │        │        │Gv,Ma   │Ew,Rw   │        │        │        │        │
  120. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  121. │7│JO      │JNO     │JB      │JNB     │JZ      │JNZ     │JBE     │JNBE    │
  122. │ │Jb      │Jb      │Jb      │Jb      │Jb      │Jb      │Jb      │Jb      │
  123. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  124. │8│Group1  │Group1  │        │Group1  │TEST    │TEST    │XCHG    │XCHG    │
  125. │ │Eb,Ib   │Ev,Iv   │        │Ev,Ib   │Eb,Gb   │Ev,Gv   │Ev,Gb   │Ev,Gv   │
  126. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  127. │9│NOP     │XCHG    │XCHG    │XCHG    │XCHG    │XCHG    │XCHG    │XCHG    │
  128. │ │        │eCX,eAX │eDX,eAX │eBX,eAX │eSP,eAX │eBP,eAX │ESI,eAX │eDI,eAX │
  129. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  130. │A│MOV     │MOV     │MOV     │MOV     │MOVSB   │MOVSW/D │CMPSB   │CMPSW/D │
  131. │ │AL,Ob   │eAX,Ov  │Ob,AL   │Ov,eAX  │        │        │        │        │
  132. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  133. │B│MOV     │MOV     │MOV     │MOV     │MOV     │MOV     │MOV     │MOV     │
  134. │ │Al,Ib   │Cl,Ib   │DL,Ib   │BL,Ib   │AH,Ib   │CH,Ib   │DH,Ib   │BH,Ib   │
  135. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  136. │C│Group2  │Group2  │RET near│RET near│LES     │LDS     │MOV     │MOV     │
  137. │ │Eb,Ib   │Ev,Lb   │lw      │        │Gv,Mp   │Gv,Mp   │Eb,Ib   │Ev,Iv   │
  138. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  139. │D│Group2  │Group2  │Group2  │Group2  │AAM     │AAD     │        │XLAT    │
  140. │ │Eb,1    │Ev,1    │Eb,CL   │Ev,Cl   │        │        │        │        │
  141. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  142. │E│LOOPNE  │LOOPE   │LOOP    │JCXZ    │IN      │IN      │OUT     │OUT     │
  143. │ │Jb      │Jb      │Jb      │Jb      │Al,Ib   │eAX,Ib  │Ib,AL   │eAX     │
  144. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  145. │F│LOCK    │        │REPNE   │REP     │HLT     │CMC     │Group3  │Group3  │
  146. │ │        │        │        │REPE    │        │        │Eb      │Ev      │
  147. └─┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  148.  
  149. ONE BYTE OPCODE (CONTINUED)
  150.  
  151.   ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
  152.   │8       │9       │A       │B       │C       │D       │E       │F       │
  153. ┌─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  154. │0│OR      │OR      │OR      │OR      │OR      │OR      │PUSH    │2byte   │
  155. │ │Eb,Gb   │Ev,Gv   │Gb,Eb   │Gv,Ev   │AL,Ib   │eAX,Iv  │CS      │escape  │
  156. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  157. │1│SBB     │SBB     │SBB     │SBB     │SBB     │SBB     │PUSH    │POP     │
  158. │ │Eb,Gb   │Ev,Gv   │Gb,Eb   │Gv,Ev   │AL,Ib   │eAX,Iv  │DS      │DS      │
  159. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  160. │2│SUB     │SUB     │SUB     │SUB     │SUB     │SUB     │CS:     │DAS     │
  161. │ │Eb,Gb   │Ev,Gv   │Gb,Eb   │Gv,Ev   │AL,Ib   │eAX,Iv  │        │        │
  162. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  163. │3│CMP     │CMP     │CMP     │CMP     │CMP     │CMP     │DS:     │AAS     │
  164. │ │Eb,Gb   │Ev,Gv   │Gb,Eb   │Gv,Ev   │AL,Ib   │eAX,Iv  │        │        │
  165. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  166. │4│DEC     │DEC     │DEC     │DEC     │DEC     │DEC     │DEC     │DEC     │
  167. │ │eAX     │eCX     │eDX     │eBX     │eSP     │eBP     │eSI     │eDI     │
  168. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  169. │5│POP     │POP     │POP     │POP     │POP     │POP     │POP     │POP     │
  170. │ │eAX     │eCX     │eDX     │eBX     │eSP     │eBP     │eSI     │eDI     │
  171. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  172. │6│PUSH    │IMUL    │PUSH    │IMUL    │INSB    │INSW/D  │OUTSB   │OUTSW/D │
  173. │ │Iv      │Gv,Ev,Iv│Ib      │Gv,Ev,Ib│Yb,DX   │Yv,DX   │DX,XB   │DX,Xv   │
  174. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  175. │7│JS      │JNS     │JP      │JNP     │JL      │JNL     │JLE     │JNLE    │
  176. │ │Jb      │Jb      │Jb      │Jb      │Jb      │Jb      │Jb      │Jb      │
  177. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  178. │8│MOV     │MOV     │MOV     │MOV     │MOV     │LEA     │MOV     │POP     │
  179. │ │Eb,Gb   │Ev,Gv   │Gb,Eb   │Gv,Ev   │Ew,Sw   │Gv,M    │Sw,Ew   │Ev      │
  180. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  181. │9│CBW     │CWD     │CALL    │WAIT    │PUSHF   │POPF    │SAHF    │LAHF    │
  182. │ │        │        │Ap      │        │Fv      │Fv      │        │        │
  183. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  184. │A│TEST    │TEST    │STOSB   │STOSW/D │LODSB   │LODSW/D │SCASB   │SCASW/D │
  185. │ │AL,Ib   │eAX,Iv  │        │        │        │        │        │        │
  186. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  187. │B│MOV     │MOV     │MOV     │MOV     │MOV     │MOV     │MOV     │MOV     │
  188. │ │eAX,Iv  │eCX,Iv  │eDX,Iv  │eBX,Iv  │eSP,Iv  │eBP,Iv  │eSI,Iv  │eDI,Iv  │
  189. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  190. │C│ENTER   │LEAVE   │RET far │        │INT     │INT     │INTO    │IRET    │
  191. │ │Iw,Ib   │        │Iw      │        │3       │Ib      │        │        │
  192. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  193. │D│ESC     │ESC     │ESC     │ESC     │ESC     │ESC     │ESC     │ESC     │
  194. │ │0       │1       │2       │3       │4       │5       │6       │7       │
  195. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  196. │E│CALL    │JMP     │JMP     │JMP     │IN      │IN      │OUT     │OUT     │
  197. │ │Av      │Jv      │Ap      │Jb      │AL,DX   │eAX,DX  │DX,AL   │DX,eAX  │
  198. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  199. │F│CLC     │STC     │CLI     │STI     │CLD     │STD     │Group4  │Group5  │
  200. │ │        │        │        │        │        │        │        │        │
  201. └─┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  202.  
  203. Two byte Opcode Table (First byte is 0FH)
  204.  
  205.   ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
  206.   │0       │1       │2       │3       │4       │5       │6       │7       │
  207. ┌─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  208. │0│Group6  │Group7  │LAR     │LSL     │        │        │CLTS    │        │
  209. │ │        │        │Gv,Ew   │Gv,Ew   │        │        │        │        │
  210. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  211. │2│MOV     │MOV     │MOV     │MOV     │MOV     │        │MOV     │        │
  212. │ │Cd,Rd   │Dd,Rd   │Rd,Cd   │Rd,Dd   │Td,Rd   │        │Rd,Td   │        │
  213. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  214. │8│JO      │JNO     │JB      │JBN     │JZ      │JNZ     │JBE     │JNBE    │
  215. │ │Jv      │Jv      │Jv      │Jv      │Jv      │Jv      │Jv      │Jv      │
  216. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  217. │9│SETO    │SETNO   │SETB    │SETNB   │SETZ    │SETNZ   │SETBE   │SETNBE  │
  218. │ │Eb      │Eb      │Eb      │Eb      │Eb      │Eb      │Eb      │Eb      │
  219. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  220. │A│PUSH    │POP     │        │BT      │SHLD    │SHLD    │        │        │
  221. │ │FS      │FS      │        │Ev,Gv   │Ev,Gv,Ib│Ev,Gv,CL│        │        │
  222. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  223. │B│        │        │LSS     │BTR     │LFS     │LGS     │MOVZX   │MOVZX   │
  224. │ │        │        │Mp      │Ev,Gv   │Mp      │Mp      │Gv,Eb   │Gv,Ew   │
  225. └─┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  226.  
  227.   ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
  228.   │        │        │        │        │        │        │        │        │
  229.   │8       │9       │A       │B       │C       │D       │E       │F       │
  230. ┌─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  231. │8│JS      │JNS     │JP      │JNP     │JL      │JNL     │JLE     │JNLE    │
  232. │ │Jv      │Jv      │Jv      │Jv      │Jv      │Jv      │Jv      │Jv      │
  233. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  234. │9│SETS    │SETNS   │SETP    │SETNP   │SETL    │SETNL   │SETLE   │SETNLE  │
  235. │ │Eb      │Eb      │Eb      │Eb      │Eb      │Eb      │Eb      │Eb      │
  236. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  237. │A│PUSH    │POP     │        │BTS     │SHRD    │SHRD    │        │IMUL    │
  238. │ │Gs      │Gs      │        │Ev,Gv   │Ev,Gv,Ib│Ev,Gv,Cl│        │Gv,Ev   │
  239. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  240. │B│        │        │Group8  │BTC     │BSF     │BSR     │MOVSX   │MOVSX   │
  241. │ │        │        │Ev,Ib   │Ev,Gv   │Gv,Ev   │Gv,Ev   │Gv,Eb   │Gv,Ew   │
  242. └─┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  243.  
  244.  
  245.  
  246. Opcodes determined by Bits 5,4 and 3 of mod r/m Byte: mod nnn r/m
  247.  
  248.   Group
  249.   ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
  250.   │000     │001     │010     │011     │100     │101     │110     │111     │
  251. ┌─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  252. │1│ADD     │OR      │ADC     │SBB     │AND     │SUB     │XOR     │CMP     │
  253. │ │        │        │        │        │        │        │        │        │
  254. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  255. │2│ROL     │ROR     │RCL     │RCR     │SHL     │SHR     │        │SAR     │
  256. │ │        │        │        │        │        │        │        │        │
  257. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  258. │3│TEST    │        │NOT     │NEG     │MUL     │IMUL    │DIV     │IDIV    │
  259. │ │Ib/Iv   │        │        │        │AL/eAX  │AL/eAX  │AL/eAX  │AL/eAX  │
  260. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  261. │4│INC     │DEC     │        │        │        │        │        │        │
  262. │ │Eb      │Eb      │        │        │        │        │        │        │
  263. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  264. │5│INC     │DEC     │CALL    │CALL    │JMP     │JMP     │PUSH    │        │
  265. │ │Ev      │Ev      │Ev      │Ep      │Ev      │Ep      │Ev      │        │
  266. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  267. │6│SLDT    │STR     │LLDT    │LTR     │VERR    │VERW    │        │        │
  268. │ │Ew      │Ew      │Ew      │Ew      │Ew      │Ew      │        │        │
  269. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  270. │7│SGDT    │SIDT    │LGDT    │LIDT    │SMSW    │        │LMSW    │        │
  271. │ │Ms      │Ms      │Ms      │Ms      │Ew      │        │Ew      │        │
  272. ├─┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  273. │8│        │        │        │        │BT      │BTS     │BTR     │BTC     │
  274. │ │        │        │        │        │        │        │        │        │
  275. └─┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  276.  
  277.  
  278. 80387 Extensions
  279. The following shows the opcode map to the 80386 instruction set for the
  280. 80387 extensions. The operand abbreviations for these tables are:
  281.  
  282. Es:  Effective address, short real (32-bit)
  283. El:  Effective address, long real (64-bit)
  284. Et:  Effective address, temp real (80-bit)
  285. Ew:  Effective address, word (16-bit)
  286. Ed:  Effective address, doubleword (32-bit)
  287. Eq:  Effective address, quadword (64-bit)
  288. Eb:  Effective address, BCD (80-bit)
  289. Ea:  Effective address, (no operand size)
  290. ST(i):  Stack element i
  291. ST:  Stack top
  292.  
  293.                            ┌───┬───┬───┬───┬───┬───┬───┬───┐
  294.                Format:     │ 7 │ 6 │ 5 │ 4 │ 3 │ 2 │ 1 │ 0 │
  295.                            │  mod  │    nnn    │    r/m    │
  296.                            └───────┴───────────┴───────────┘
  297.  
  298.                                       ┌─────────┐
  299.                                       │  ESC 0  │
  300.                                       │   nnn   │
  301.        ┌────────┬────────┬────────┬───┴────┬────┴───┬────────┬────────┬────────┐
  302.        │000     │001     │010     │011     │100     │101     │110     │111     │
  303.        ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  304.     00 │FADD    │FMUL    │FCOM    │FCOMP   │FSUB    │FSUBR   │FDIV    │FDIVR   │
  305. mod=01 │Es      │Es      │Es      │Es      │Es      │Es      │Es      │Es      │
  306.     10 │        │        │        │        │        │        │        │        │
  307.        ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  308. mod=11 │FADD    │FMUL    │FCOM    │FCOMP   │FSUB    │FSUBR   │FDIV    │FDIVR   │
  309.        │ST,ST(i)│ST,ST(i)│ST,ST(i)│ST,ST(i)│ST,ST(i)│ST,ST(i)│ST,ST(i)│ST,ST(i)│
  310.        └────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  311.        1=r/m
  312.  
  313.                                        ┌─────────┐
  314.                                        │  ESC 1  │
  315.                                        │   nnn   │
  316.         ┌────────┬────────┬────────┬───┴────┬────┴───┬────────┬────────┬────────┐
  317.         │000     │001     │010     │011     │100     │101     │110     │111     │
  318.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  319.      00 │FLD     │        │FST     │FSTP    │FLDENV  │FLDCW   │FSTENV  │FSTCW   │
  320.  mod=01 │Es      │        │Es      │Es      │Ea      │Ew      │Ea      │Ew      │
  321.      10 │        │        │        │        │        │        │        │        │
  322.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  323.      r/m│FLD     │FXCH    │FNOP    │        │FCHS    │FLD1    │F2XM1   │FPREM   │
  324.      000│ST(0)   │ST(0)   │        │        │        │        │        │        │
  325.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  326.         │FLD     │FXCH    │        │        │FABS    │FLDL2T  │FYL2X   │FYL2XP1 │
  327.      001│ST(1)   │ST(1)   │        │        │        │        │        │        │
  328.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  329.      010│FLD     │FXCH    │        │        │        │FLDL2E  │FPTAN   │FSQRT   │
  330.         │ST(2)   │ST(2)   │        │        │        │        │        │        │
  331.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  332.      011│FLD     │FXCH    │        │        │        │FLDPI   │FPATAN  │FSINCOS │
  333.         │ST(3)   │ST(3)   │        │        │        │        │        │        │
  334. mod=11  ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  335.      100│FLD     │FXCH    │        │        │FTST    │FLDLG2  │FXTRACT │FRNDINT │
  336.         │ST(4)   │ST(4)   │        │        │        │        │        │        │
  337.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  338.      101│FLD     │FXCH    │        │        │FXAM    │FLDLN2  │FPREMI  │FSCALE  │
  339.         │ST(5)   │ST(5)   │        │        │        │        │        │        │
  340.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  341.      110│FLD     │FXCH    │        │        │        │FLDZ    │FDECSTP │FSIN    │
  342.         │ST(6)   │ST(6)   │        │        │        │        │        │        │
  343.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  344.      111│FLD     │FXCH    │        │        │        │        │FINCSTP │FCOS    │
  345.         │ST(7)   │ST(7)   │        │        │        │        │        │        │
  346.         └────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  347.  
  348.                                        ┌─────────┐
  349.                                        │  ESC 2  │
  350.                                        │   nnn   │
  351.         ┌────────┬────────┬────────┬───┴────┬────┴───┬────────┬────────┬────────┐
  352.         │000     │001     │010     │011     │100     │101     │110     │111     │
  353.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  354.      00 │FIADD   │FIMUL   │FICOM   │FICOMP  │FISUB   │FISUBR  │FIDIV   │FIDIVR  │
  355.  mod=01 │Ew      │Ew      │Ew      │Ew      │Ew      │Ew      │Ew      │Ew      │
  356.      10 │        │        │        │        │        │        │        │        │
  357.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  358.  mod=11 │        │FUCOMPP*│        │        │        │        │        │        │
  359.         │        │        │        │        │        │        │        │        │
  360.         └────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  361.          *r/m=5
  362.  
  363.  
  364.                                        ┌─────────┐
  365.                                        │  ESC 3  │
  366.                                        │   nnn   │
  367.         ┌────────┬────────┬────────┬───┴────┬────┴───┬────────┬────────┬────────┐
  368.         │000     │001     │010     │011     │100     │101     │110     │111     │
  369.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  370.      00 │FILD    │        │FIST    │FISTP   │FLD     │        │FSTP    │        │
  371.  mod=01 │Ew      │        │Ew      │Ew      │Et      │        │Et      │        │
  372.      10 │        │        │        │        │        │        │        │        │
  373.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  374.  mod=11 │        │        │        │        │Group 3a│        │        │        │
  375.         │        │        │        │        │        │        │        │        │
  376.         └────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  377.  
  378.                              ┌──────────────────────────┐
  379.                              │ Group 3a: mod=11,nnn=100 │
  380.         ┌────────┬────────┬──┴─────┬────────┬────────┬──┴─────┬────────┬────────┐
  381.         │000     │001     │010     │011     │100     │101     │110     │111     │
  382.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  383.         │(FENI)  │(FDISI) │FCLEX   │FINIT   │(FSETPM)│        │        │        │
  384.         │        │        │        │        │        │        │        │        │
  385.         └────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  386.  
  387.                                        ┌─────────┐
  388.                                        │  ESC 4  │
  389.                                        │   nnn   │
  390.         ┌────────┬────────┬────────┬───┴────┬────┴───┬────────┬────────┬────────┐
  391.         │000     │001     │010     │011     │100     │101     │110     │111     │
  392.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  393.      00 │FADD    │FMUL    │FCOM    │FCOMP   │FSUB    │FSUBR   │FDIV    │FDIVR   │
  394.  mod=01 │El      │El      │El      │El      │El      │El      │El      │El      │
  395.      10 │        │        │        │        │        │        │        │        │
  396.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  397.  mod=11 │FADD    │FMUL    │FCOM    │FCOMP   │FSUB    │FSUBR   │FDIV    │FDIVR   │
  398.         │ST(i),ST│ST(i),ST│ST(i),ST│ST(i),ST│ST(i),ST│ST(i),ST│ST(i),ST│ST(i),ST│
  399.         └────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  400.         i=r/m
  401.  
  402.                                        ┌─────────┐
  403.                                        │  ESC 5  │
  404.                                        │   nnn   │
  405.         ┌────────┬────────┬────────┬───┴────┬────┴───┬────────┬────────┬────────┐
  406.         │000     │001     │010     │011     │100     │101     │110     │111     │
  407.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  408.      00 │FLD     │        │FST     │FSTP    │FRSTOR  │        │FSAVE   │FSTSW   │
  409.  mod=01 │El      │        │El      │El      │Ea      │        │Ea      │Ew      │
  410.      10 │        │        │        │        │        │        │        │        │
  411.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  412.  mod=11 │FFREE   │        │FST     │FSTP    │FUCOM   │FUCOMP  │        │        │
  413.         │ST(i)   │        │ST(i)   │ST(i)   │ST(i)   │ST(i)   │        │        │
  414.         └────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  415.         i=r/m
  416.  
  417.                                        ┌─────────┐
  418.                                        │  ESC 6  │
  419.                                        │   nnn   │
  420.         ┌────────┬────────┬────────┬───┴────┬────┴───┬────────┬────────┬────────┐
  421.         │000     │001     │010     │011     │100     │101     │110     │111     │
  422.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  423.         │FIADD   │FIMUL   │FICOM   │FICOMP  │FISUB   │FISUBR  │FIDIV   │FIDIVR  │
  424.         │Ed      │Ed      │Ed      │Ed      │Ed      │Ed      │Ed      │Ed      │
  425.         │        │        │        │        │        │        │        │        │
  426.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  427.         │FADDP   │FMULP   │        │FCOMPP *│FSUBP   │FSUBRP  │FDIVP   │FDIVRP  │
  428.         │ST(i),ST│ST(i),ST│        │        │ST(i),ST│ST(i),ST│ST(i),ST│ST(i),ST│
  429.         └────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  430.         * r/m=001
  431.  
  432.                                        ┌─────────┐
  433.                                        │  ESC 7  │
  434.                                        │   nnn   │
  435.         ┌────────┬────────┬────────┬───┴────┬────┴───┬────────┬────────┬────────┐
  436.         │000     │001     │010     │011     │100     │101     │110     │111     │
  437.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  438.         │FILD    │        │FIST    │FISTP   │FBLD    │FILD    │FBSTP   │FISTP   │
  439.         │Ed      │        │Ed      │Ed      │Eb      │Eq      │Eb      │Eq      │
  440.         │        │        │        │        │        │        │        │        │
  441.         ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
  442.         │FSTSW*  │        │        │        │        │        │        │        │
  443.         │  AX    │        │        │        │        │        │        │        │
  444.         └────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┘
  445.         *r/m=000
  446.  
  447.  
  448. ========================================================> End of file
  449.  
  450.